package com.xy.article;

import com.xy.creature.Creature;
/**
 * @description:武器
 * @author: Xiang Yao
 * @date: Created in 2020/6/7
 */
public abstract class ArticleWeapon {
    private String id;
    private String description;
    private  int damagePoint;
    //使用道具
    public  abstract void useArticle(Creature enemyCreature);
    public ArticleWeapon(){

    }

    public ArticleWeapon(String id, String description) {
        this.id = id;
        this.description = description;
    }

    public ArticleWeapon(String id, String description, int damagePoint) {
        this.id = id;
        this.description = description;
        this.damagePoint = damagePoint;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getDamagePoint() {
        return damagePoint;
    }

    public void setDamagePoint(int damagePoint) {
        this.damagePoint = damagePoint;
    }

    protected abstract int getDamagaPoint();

    public abstract String getDamagePoints();
}
